﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="memcachedmgr.aspx.cs" Inherits="GUI.memcachedmgr" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="robots" content="noindex, nofollow" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:MultiView runat="server" ID="mvPanel">
        <asp:View runat="server" ID="vLogin">
            <table cellpadding="5" cellspacing="0">
                <tr>
                    <td>Password</td>
                    <td><asp:TextBox runat="server" ID="txtPassword" TextMode="Password"></asp:TextBox></td>
                    <td><asp:Button runat="server" ID="btnLogin" Text="Login" onclick="btnLogin_Click"/></td>
                </tr>
            </table>
        </asp:View>
        <asp:View runat="server" ID="vCacheManager">
            <table cellpadding="5" cellspacing="0">
                <tr>
                    <td colspan="3">
                        <asp:Button runat="server" ID="btnLogout" Text="Logout" 
                            onclick="btnLogout_Click"/></td>
                </tr>
                <tr>
                    <td>
                        Memcached For
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMemcachedServer" runat="server">
                            <asp:ListItem Value="Data">Data Cached</asp:ListItem>
                            <asp:ListItem Value="Page">Page Cached</asp:ListItem>
                            <asp:ListItem Value="Control">Control Cached</asp:ListItem>
                            <asp:ListItem Value="Tag">Tag Cached</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        Key Group
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlKeyGroup" runat="server">
                            <asp:ListItem Value="">No Group</asp:ListItem>
                            <asp:ListItem Value="default">Default Group</asp:ListItem>
                            <asp:ListItem Value="news">Group For News</asp:ListItem>
                            <asp:ListItem Value="zone">Group For Zone</asp:ListItem>
                            <asp:ListItem Value="tag">Group For Tag</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtGroupName"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Cached Key
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCachedKey"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnGetCache" runat="server" Text="Get cached" OnClick="btnGetCache_Click" />
            <asp:Button ID="btnRemoveCached" runat="server" Text="Remove cached" OnClick="btnRemoveCached_Click" />
            <asp:Button ID="btnRemoveAllGroup" runat="server" Text="Remove all cached group"
                OnClick="btnRemoveAllGroup_Click" />
            <asp:Button ID="btnRemoveAllServer" runat="server" Text="Remove all cached server"
                OnClick="btnRemoveAllServer_Click" />
            <asp:Button ID="btnGetAllCachedKey" runat="server" Text="Get all cached key" OnClick="btnGetAllCachedKey_Click" />
            <p>
                <asp:CustomValidator ID="cusvError" runat="server" Display="Dynamic"></asp:CustomValidator>
            </p>
            <p>
                <asp:Label ID="lblCachedValue" runat="server"></asp:Label>
                <asp:GridView ID="grvCachedValue" runat="server">
                </asp:GridView>
            </p>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
